﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LED_Tester
{
    public partial class frmNew : Form
    {
        public frmNew()
        {
            InitializeComponent();
        }

        private int measProject;

        public int MeasProject
        {
            get { return measProject; }
            set { measProject = value; }
        }

        private void frmNew_Load(object sender, EventArgs e)
        {
            listBox1.SelectedIndex = measProject;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            measProject = listBox1.SelectedIndex;
        }
    }
}
